﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Mvc;
using System.Web.Routing;
using MvcEngine.Core;
using MvcEngine.Core.Content;
using MvcEngine.Blog.Components.Extensions;
using System.Web.Mvc;
using MvcEngine.Blog.Managers;
using MvcEngine.Mvc.Extensions;

namespace MvcEngine.Blog.Commands
{
    public class RecentPostsSettingsCommand : ControlCommand
    {
        public override string GetUrl(RequestContext context)
        {
            UrlHelper urlHelper = new UrlHelper(context);
            return urlHelper.RecentPosts(context.RouteData.GetPageContentId());
        }
    }
}
